emacs.git
13 years ago* lisp/profiler.el (profiler-report-mode-map): Add a restart menu entry.
Glenn Morris [Tue, 5 Feb 2013 02:12:58 +0000 (21:12 -0500)]
* lisp/profiler.el (profiler-report-mode-map): Add a restart menu entry.

13 years agoFix indentation in previous
Glenn Morris [Tue, 5 Feb 2013 02:06:53 +0000 (21:06 -0500)]
Fix indentation in previous

13 years agogamegrid-add-score-with-update-game-score fix
Glenn Morris [Tue, 5 Feb 2013 02:03:51 +0000 (21:03 -0500)]
gamegrid-add-score-with-update-game-score fix

* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
Fix directory creation in fallback case.

13 years ago* lisp/vc/vc.el (vc-next-action): Fix inf-loop.
Thierry Volpiatto [Mon, 4 Feb 2013 21:23:15 +0000 (16:23 -0500)]
* lisp/vc/vc.el (vc-next-action): Fix inf-loop.
(vc-update-change-log): Use dolist.

13 years ago* fileio.c (Qchoose_write_coding_system): Now static.
Paul Eggert [Mon, 4 Feb 2013 16:33:30 +0000 (08:33 -0800)]
* fileio.c (Qchoose_write_coding_system): Now static.

13 years agoFix bugs #13623 and 13626 caused by changes in revision 111647.
Eli Zaretskii [Mon, 4 Feb 2013 15:39:55 +0000 (17:39 +0200)]
Fix bugs #13623 and 13626 caused by changes in revision 111647.

 src/xdisp.c (window_buffer_changed): region_showing can be negative,
 which still means region is being displayed.
 (redisplay_internal): Resurrect code that forced redisplay of the
 whole window when showing region and the mark has changed.  Record
 the new mark position to allow redisplay optimizations.
 (display_line): If it->region_beg_charpos is non-zero, set the
 window's region_showing member to -1.
 src/window.h (struct window) <region_showing>: Declare ptrdiff_t,
 not bitfield of 1 bit.

13 years agoMerge FFAP's URI-detection code into thingatpt.el.
Chong Yidong [Mon, 4 Feb 2013 12:02:25 +0000 (20:02 +0800)]
Merge FFAP's URI-detection code into thingatpt.el.

* lisp/ffap.el: Require thingatpt.
(ffap-url-at-point): Delegate URI detection to thing-at-point.
All URI-valid characters are now recognized.
(ffap-string-at-point): Use use-region-p.
(ffap-url-regexp): Extra character is handled by thing-at-point.
(ffap-string-at-point-mode-alist): Allow parentheses.
(ffap-newsgroup-regexp, ffap-newsgroup-heads, ffap-newsgroup-p):
Convert to aliases; code moved to thingatpt.el.
(ffap-gnus-hook): Use setq-local.

* lisp/thingatpt.el: Rewrite the URL detection routines, absorbing some
code from ffap.el.
(thing-at-point-beginning-of-url-regexp): New var.
(thing-at-point-uri-schemes): Update list of URI schemes.
(thing-at-point-url-regexp): Variable deleted.
(thing-at-point-markedup-url-regexp): Disallow newlines.
(thing-at-point-newsgroup-regexp)
(thing-at-point-newsgroup-heads)
(thing-at-point-default-mail-uri-scheme): New variables.
(thing-at-point-bounds-of-url-at-point): Rewrite.  Use ffap's
method to find the possible bounds of the URI at point.  New
optional argument to find ill-formed URIs.
(thing-at-point-url-at-point): Rewrite.  New arguments for finding
ill-formed URIs.  Use thing-at-point-bounds-of-url-at-point, and
the scheme-adding heuristics from ffap-url-at-point.
(thing-at-point--bounds-of-well-formed-url): New function.  Do
parens matching to decide whether to include parens in the URI

* test/automated/thingatpt.el: New file.

13 years agoert--explain-format-atom fix for non-characters
Glenn Morris [Mon, 4 Feb 2013 07:46:22 +0000 (23:46 -0800)]
ert--explain-format-atom fix for non-characters

* lisp/emacs-lisp/ert.el (ert--explain-format-atom):
Don't try to print non-characters as characters.

13 years agoDaniel Colascione 2013-02-03 * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC
dancol@dancol.org [Sun, 3 Feb 2013 17:02:56 +0000 (09:02 -0800)]
Daniel Colascione 2013-02-03 * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC

13 years ago* net/tramp.el (tramp-debug-message): Extend function exclude list.
Michael Albinus [Sun, 3 Feb 2013 16:49:37 +0000 (17:49 +0100)]
* net/tramp.el (tramp-debug-message): Extend function exclude list.
(tramp-backtrace): New defun.
(tramp-handle-insert-file-contents): Use `visit' when inserting
the local copy.

* net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime): Use
`remote-file-name-inhibit-cache'.

13 years ago* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
Daniel Colascione [Sun, 3 Feb 2013 16:45:37 +0000 (08:45 -0800)]
* emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that
daemon mode works on cygw32 when Emacs is installed and not just
during development.

13 years ago* lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
Stefan Monnier [Sun, 3 Feb 2013 16:13:36 +0000 (11:13 -0500)]
* lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
time `requiring' a builtin feature.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove
left-over message.

13 years ago* lisp/progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning.
Stefan Monnier [Sun, 3 Feb 2013 15:47:12 +0000 (10:47 -0500)]
* lisp/progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning.

13 years ago* lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
Stefan Monnier [Sun, 3 Feb 2013 15:28:47 +0000 (10:28 -0500)]
* lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
current-load-list.

13 years agoFix byte compilation warning in files testsuite.
Chong Yidong [Sun, 3 Feb 2013 08:55:45 +0000 (16:55 +0800)]
Fix byte compilation warning in files testsuite.

* automated/files.el (file-test--do-local-variables-test): Avoid
compilation warning message.

13 years agoAvoid file time stamp bug on MS-Windows.
Paul Eggert [Sat, 2 Feb 2013 19:18:00 +0000 (11:18 -0800)]
Avoid file time stamp bug on MS-Windows.

* fileio.c (Fwrite_region): Don't use the heuristic on empty files,
as FAT32 doesn't update time stamps when truncating them.
Also, check that a file time stamp is not a multiple of 100 ns;
this should catch all instances of the problem on MS-Windows,
as its native file system resolution is 100 ns or worse, and
checking for a non-multiple of 100 ns should impose only a small
overhead on systems with ns resolution.

13 years agoAvoid encoding file names run through dostounix_filename on MS-Windows.
Eli Zaretskii [Sat, 2 Feb 2013 17:14:24 +0000 (19:14 +0200)]
Avoid encoding file names run through dostounix_filename on MS-Windows.

 src/w32.c (normalize_filename): Accept an additional argument
 MULTIBYTE; if non-zero, traverse the file name by bytes and don't
 downcase it even if w32-downcase-file-names is non-nil.
 (dostounix_filename): Accept an additional argument MULTIBYTE and
 pass it to normalize_filename.
 (emacs_root_dir): Adjust.
 src/msdos.h (dostounix_filename): Adjust prototype.
 src/w32.h (dostounix_filename): Adjust prototype.
 src/msdos.c (dostounix_filename): Accept an additional argument and
 ignore it.
 (init_environment): Adjust callers of dostounix_filename.
 src/fileio.c (Ffile_name_directory, file_name_as_directory)
 (directory_file_name, Fexpand_file_name)
 (Fsubstitute_in_file_name): [DOS_NT] Adjust call to
 dostounix_filename.
 [WINDOWSNT]: Downcase file names if w32-downcase-file-names is
 non-nil.
 (Fsubstitute_in_file_name): [DOS_NT] Don't downcase environment
 variables, as egetenv is case-insensitive for DOS_NT.
 src/dired.c (file_name_completion): Don't call Fdirectory_file_name
 with an encoded file name.
 src/w32proc.c (Fw32_short_file_name, Fw32_long_file_name): Adjust
 calls to dostounix_filename.
 src/w32fns.c (Fx_file_dialog): Adjust call to dostounix_filename.
 src/unexw32.c (unexec): Adjust call to dostounix_filename.
 src/termcap.c (tgetent) [MSDOS]: Adjust call to dostounix_filename.
 src/emacs.c (decode_env_path) [DOS_NT]: Adjust call to
 dostounix_filename.
 src/callproc.c (Fcall_process) [MSDOS]: Adjust call to
 dostounix_filename.

13 years ago* progmodes/compile.el (compilation-mode-hook)
Christopher Schmidt [Sat, 2 Feb 2013 08:41:02 +0000 (09:41 +0100)]
* progmodes/compile.el (compilation-mode-hook)
(compilation-start-hook, compilation-window-height): Simplify
docstrings.  (Bug#13379)

13 years ago* progmodes/compile.el (compilation-start-hook): Simplify docstring.
Christopher Schmidt [Sat, 2 Feb 2013 06:25:20 +0000 (07:25 +0100)]
* progmodes/compile.el (compilation-start-hook): Simplify docstring.
(Bug#13379)

13 years ago* progmodes/compile.el (compilation-error-regexp-alist-alist):
Christopher Schmidt [Sat, 2 Feb 2013 06:15:05 +0000 (07:15 +0100)]
* progmodes/compile.el (compilation-error-regexp-alist-alist):
Identify g++ template instantiation trace.  (Bug#12287)

13 years agoSpelling fixes.
Paul Eggert [Sat, 2 Feb 2013 06:04:06 +0000 (22:04 -0800)]
Spelling fixes.

13 years agoMerge from emacs-24; up to r111217
Glenn Morris [Sat, 2 Feb 2013 03:38:21 +0000 (19:38 -0800)]
Merge from emacs-24; up to r111217

13 years ago* lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face
Juri Linkov [Sat, 2 Feb 2013 00:35:38 +0000 (02:35 +0200)]
* lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face
instead of hard-coded default face `match'.  (Bug#9438)

13 years ago* lisp/mouse.el (mouse-drag-track): Always deactivate the mark before
Stefan Monnier [Fri, 1 Feb 2013 23:40:55 +0000 (18:40 -0500)]
* lisp/mouse.el (mouse-drag-track): Always deactivate the mark before
running the final event's command since that command is in charge of
activating the mark if needed.

13 years ago* lisp/replace.el (perform-replace): Move let-bindings of isearch-*
Juri Linkov [Fri, 1 Feb 2013 23:38:41 +0000 (01:38 +0200)]
* lisp/replace.el (perform-replace): Move let-bindings of isearch-*
variables deeper to the loop that searches for the next match.
Add bindings for `isearch-nonincremental' and `isearch-adjusted'.
Use `isearch-search-fun-default' instead of `isearch-search-fun'.

* lisp/isearch.el (isearch-search-fun-default): Check for null
first element of isearch-cmds as a precaution when it's used
with inactive isearch.

13 years ago* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
Andrew W. Nosenko [Fri, 1 Feb 2013 21:10:08 +0000 (22:10 +0100)]
* net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
error when buffer in question is narrowed so position 1 is out of
visible part.

13 years agoFix timestamp bug when write-region appends nothing.
Paul Eggert [Fri, 1 Feb 2013 20:51:12 +0000 (12:51 -0800)]
Fix timestamp bug when write-region appends nothing.

* fileio.c (Fwrite_region): When neither O_EXCL nor O_TRUNC is used,
the file's time stamp doesn't change if Emacs happens to write nothing
to the file, and on a buggy file system this could cause Emacs to
incorrectly infer that the file system doesn't have the bug.
Avoid this problem by inhibiting the inference in this case.

13 years ago* vc/vc-arch.el (vc-arch-registered):
Christopher Schmidt [Fri, 1 Feb 2013 17:19:24 +0000 (18:19 +0100)]
* vc/vc-arch.el (vc-arch-registered):
* vc/vc-bzr.el (vc-bzr-registered):
* vc/vc-cvs.el (vc-cvs-registered):
* vc/vc-git.el (vc-git-registered):
* vc/vc-hg.el (vc-hg-registered):
* vc/vc-mtn.el (vc-mtn-registered):
* vc/vc-svn.el (vc-svn-registered): Suppress load messages.
(Bug#13139)

13 years ago* info.el (Info-next-reference, Info-prev-reference): Add numeric
Christopher Schmidt [Fri, 1 Feb 2013 16:46:46 +0000 (17:46 +0100)]
* info.el (Info-next-reference, Info-prev-reference): Add numeric
prefix argument.  (Bug#11656)

13 years ago* lisp/help-fns.el (help-split-fundoc): Don't insert byte-compiled body.
Stefan Monnier [Fri, 1 Feb 2013 15:56:22 +0000 (10:56 -0500)]
* lisp/help-fns.el (help-split-fundoc): Don't insert byte-compiled body.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Feb 2013 12:18:14 +0000 (07:18 -0500)]
Auto-commit of loaddefs files.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Feb 2013 11:21:12 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

13 years agoAuto-commit of generated files.
Glenn Morris [Fri, 1 Feb 2013 11:17:43 +0000 (06:17 -0500)]
Auto-commit of generated files.

13 years agoMake sure program names are encoded before using them to invoke subprocesses.
Eli Zaretskii [Fri, 1 Feb 2013 10:15:36 +0000 (12:15 +0200)]
Make sure program names are encoded before using them to invoke subprocesses.

 src/callproc.c (Fcall_process): Make sure program name in PATH and
 new_argv[0] is encoded, if needed.  Otherwise, un-encoded string
 is passed to exec/spawnve, which fails unless the file-name
 encoding is UTF-8.

13 years agow32proc.c (sys_spawnve): Initialize escape_char.
Eli Zaretskii [Fri, 1 Feb 2013 09:23:23 +0000 (11:23 +0200)]
w32proc.c (sys_spawnve): Initialize escape_char.

 src/w32proc.c (sys_spawnve): Make sure escape_char is initialized,
 even if w32-quote-process-args is nil.

13 years ago* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
Glenn Morris [Fri, 1 Feb 2013 08:44:10 +0000 (00:44 -0800)]
* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
if the backend is known not to support it.

13 years ago* imenu.el (imenu-default-create-index-function):
Glenn Morris [Fri, 1 Feb 2013 08:23:47 +0000 (00:23 -0800)]
* imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.

13 years ago* net/soap-client.el (soap-invoke): Encode the string for
Alex Harsanyi [Fri, 1 Feb 2013 07:28:10 +0000 (08:28 +0100)]
* net/soap-client.el (soap-invoke): Encode the string for
`url-request-data' as UTF-8.  Fixes
<http://code.google.com/p/emacs-soap-client/issues/detail?id=16>.

13 years ago* window.h (struct window): Convert base_line_number, base_line_pos
Dmitry Antipov [Fri, 1 Feb 2013 07:23:18 +0000 (11:23 +0400)]
* window.h (struct window): Convert base_line_number, base_line_pos
and column_number_displayed members from Lisp_Object to ptrdiff_t.
Convert region_showing member from Lisp_Object to bitfield.
Remove sequence_number member.  Adjust comments.
* window.c (sequence_number): Remove.
(make_window): Initialize column_number_displayed.
* print.c (print_object): Follow the printed representation of
frames and print window pointer to distinguish between windows.
(adjust_window_count): Invalidate base_line_pos.  Adjust comment.
* xdisp.c (wset_base_line_number, wset_base_line_pos)
(wset_column_number_displayed, wset_region_showing): Remove.
(window_buffer_changed, mode_line_update_needed, redisplay_internal)
(try_scrolling, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id, display_line)
(display_mode_lines, decode_mode_spec): Adjust users.
* .gdbinit (pwinx): Do not print sequence_number.

13 years agoUse fdopendir, fstatat and readlinkat, for efficiency.
Paul Eggert [Fri, 1 Feb 2013 06:30:51 +0000 (22:30 -0800)]
Use fdopendir, fstatat and readlinkat, for efficiency.

On my host, this speeds up directory-files-and-attributes by a
factor of 3, when applied to Emacs's src directory.
These functions are standardized by POSIX and are common these
days; fall back on a (slower) gnulib implementation if the host
is too old to supply them.
* .bzrignore: Add lib/dirent.h.
* lib/Makefile.am (libgnu_a_SOURCES): Add openat-die.c, save-cwd.c.
* lib/careadlinkat.c, lib/careadlinkat.h: Merge from gnulib,
incorporating: 2013-01-29 careadlinkat: do not provide careadlinkatcwd.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/dirent.in.h, lib/fdopendir.c, lib/fstatat.c, lib/openat-priv.h:
* lib/openat-proc.c, lib/openat.h, m4/dirent_h.m4, m4/fdopendir.m4:
* m4/fstatat.m4: New files, from gnulib.
* lib/openat-die.c, lib/save-cwd.c, lib/save-cwd.h: New files.
These last three are specific to Emacs and are not copied from gnulib.
They are simpler than the gnulib versions and are tuned for Emacs.
* admin/merge-gnulib (GNULIB_MODULES): Add fdopendir, fstatat, readlinkat.
(GNULIB_TOOL_FLAGS): Do not avoid at-internal, openat-h.
Avoid dup, open, opendir.
* nt/inc/sys/stat.h (fstatat):
* nt/inc/unistd.h (readlinkat): New decls.
* src/conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): Remove.
* src/dired.c: Include <fcntl.h>.
(open_directory): New function, which uses open and fdopendir
rather than opendir.  DOS_NT platforms still use opendir, though.
(directory_files_internal, file_name_completion): Use it.
(file_attributes): New function, with most of the old Ffile_attributes.
(directory_files_internal, Ffile_attributes): Use it.
(file_attributes, file_name_completion_stat): First arg is now fd,
not dir name.  All uses changed.  Use fstatat rather than lstat +
stat.
(file_attributes): Use emacs_readlinkat rather than Ffile_symlink_p.
* src/fileio.c: Include <allocator.h>, <careadlinkat.h>.
(emacs_readlinkat): New function, with much of the old
Ffile_symlink_p, but with an fd argument for speed.
It uses readlinkat rather than careadlinkatcwd, so that it
need not assume the working directory.
(Ffile_symlink_p): Use it.
* src/filelock.c (current_lock_owner): Use emacs_readlinkat
rather than emacs_readlink.
* src/lisp.h (emacs_readlinkat): New decl.
(READLINK_BUFSIZE, emacs_readlink): Remove.
* src/sysdep.c: Do not include <allocator.h>, <careadlinkat.h>.
(emacs_norealloc_allocator, emacs_readlink): Remove.
This stuff is moved to fileio.c.
* src/w32.c (fstatat, readlinkat): New functions.
(careadlinkat): Don't check that fd == AT_FDCWD.
(careadlinkatcwd): Remove; no longer needed.

13 years agoRemove info duplicated from manual; convert to outline mode format.
Glenn Morris [Fri, 1 Feb 2013 04:04:23 +0000 (20:04 -0800)]
Remove info duplicated from manual; convert to outline mode format.

13 years agoMove lisp/calc/README* to etc/CALC-NEWS
Glenn Morris [Fri, 1 Feb 2013 03:58:50 +0000 (19:58 -0800)]
Move lisp/calc/README* to etc/CALC-NEWS

* make-dist: Only README files exist in lisp/ now, not README*.

* doc/misc/calc.texi (Help Commands): Mention etc/CALC-NEWS.

* etc/CALC-NEWS: Move here from lisp/calc/README, README.prev.

* lisp/calc/README, lisp/calc/README.prev: Rename/merge to etc/CALC-NEWS.

13 years agoMerge calc news from lisp/calc/README into etc/NEWS files
Glenn Morris [Fri, 1 Feb 2013 03:51:08 +0000 (19:51 -0800)]
Merge calc news from lisp/calc/README into etc/NEWS files

* doc/misc/calc.texi (Help Commands): Update calc-view-news description.

* lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news.

* lisp/calc/README: Move news entries from here...
* etc/NEWS, etc/NEWS.23: ... to here

13 years agofix last patch
Sam Steingold [Thu, 31 Jan 2013 22:37:54 +0000 (17:37 -0500)]
fix last patch

13 years agoSync CEDET and EIEIO version numbers with upstream.
David Engster [Thu, 31 Jan 2013 19:58:56 +0000 (20:58 +0100)]
Sync CEDET and EIEIO version numbers with upstream.

13 years agoChangeLog for previous fileio.c change
Glenn Morris [Thu, 31 Jan 2013 17:07:57 +0000 (09:07 -0800)]
ChangeLog for previous fileio.c change

13 years ago* lisp/textmodes/remember.el (remember-clipboard): Doc fix.
Glenn Morris [Thu, 31 Jan 2013 17:03:53 +0000 (09:03 -0800)]
* lisp/textmodes/remember.el (remember-clipboard): Doc fix.

13 years agoSimplify part of previous Fwrite_region change
Glenn Morris [Thu, 31 Jan 2013 16:53:37 +0000 (08:53 -0800)]
Simplify part of previous Fwrite_region change

13 years ago* net/tramp.el (tramp-tramp-file-p): Comment check for
Michael Albinus [Thu, 31 Jan 2013 08:33:03 +0000 (09:33 +0100)]
* net/tramp.el (tramp-tramp-file-p): Comment check for
`string-as-unibyte'.  The function does not exist on XEmacs, and
likely we need another approach.

* net/tramp-sh.el (tramp-compute-multi-hops): Check, whether
`tramp-gw-*' variables are bound.

13 years agoReduce delay between backing up a file and saving new version
Glenn Morris [Thu, 31 Jan 2013 06:35:45 +0000 (22:35 -0800)]
Reduce delay between backing up a file and saving new version

* lisp/files.el (basic-save-buffer-2):
Choose coding system for writing the file before backing it up.

* src/fileio.c (choose_write_coding_system): Make it callable from Lisp.
(Fwrite_region): If coding-system-for-write is set, don't call
choose_write_coding_system.
Move the last piece of choose_write_coding_system here.
(syms_of_fileio): Add choose-write-coding-system.

13 years ago* lisp/simple.el (cycle-spacing): New command.
Michal Nazarewicz [Thu, 31 Jan 2013 02:57:35 +0000 (21:57 -0500)]
* lisp/simple.el (cycle-spacing): New command.
(just-one-space): Use it.

13 years ago* lisp/progmodes/opascal.el: Rename from delphi.el. Use lexical-binding.
Stefan Monnier [Thu, 31 Jan 2013 01:58:24 +0000 (20:58 -0500)]
* lisp/progmodes/opascal.el: Rename from delphi.el.  Use lexical-binding.
(opascal-newline-always-indents): Remove custom.
(opascal-tab, opascal-newline): Remove commands.
(opascal-new-comment-line): Insert "\n" instead of calling newline.
(opascal-mode-map): Keep default bindings for RET and TAB and DEL.
(opascal-save-match-data): Remove, use save-match-data instead.
(opascal-save-state): Use with-silent-modifications.

13 years ago* lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments.
Stefan Monnier [Thu, 31 Jan 2013 00:58:24 +0000 (19:58 -0500)]
* lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments.

13 years ago* lisp/frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
Juri Linkov [Wed, 30 Jan 2013 23:50:11 +0000 (01:50 +0200)]
* lisp/frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
Use fullboth as an alias for fullscreen.  Suggested by Jan Djärv in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html>.

13 years agolisp/gnus/gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace
Christopher Schmidt [Wed, 30 Jan 2013 22:45:32 +0000 (22:45 +0000)]
lisp/gnus/gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace

13 years ago* lisp/progmodes/make-mode.el (makefile-backslash-region): Don't compute
Stefan Monnier [Wed, 30 Jan 2013 20:46:10 +0000 (15:46 -0500)]
* lisp/progmodes/make-mode.el (makefile-backslash-region): Don't compute
column if we're just deleting the backslashes.
(makefile-fill-paragraph): Use eolp.

13 years ago* lisp/progmodes/make-mode.el (makefile-fill-paragraph): Reset syntax-table
Stefan Monnier [Wed, 30 Jan 2013 20:43:02 +0000 (15:43 -0500)]
* lisp/progmodes/make-mode.el (makefile-fill-paragraph): Reset syntax-table
properties.

13 years ago* autorevert.el (auto-revert-use-notify): Fix docstring.
Michael Albinus [Wed, 30 Jan 2013 19:20:46 +0000 (20:20 +0100)]
* autorevert.el (auto-revert-use-notify): Fix docstring.

13 years ago* lisp/imenu.el (imenu--truncate-items): Fix subalist checking.
Leo Liu [Wed, 30 Jan 2013 17:57:54 +0000 (01:57 +0800)]
* lisp/imenu.el (imenu--truncate-items): Fix subalist checking.

13 years agoMerge from emacs-24; up to r111208
Glenn Morris [Wed, 30 Jan 2013 17:16:30 +0000 (09:16 -0800)]
Merge from emacs-24; up to r111208

13 years agomouse-drag-line changes for mouse-1 in header-line
Glenn Morris [Wed, 30 Jan 2013 17:14:24 +0000 (09:14 -0800)]
mouse-drag-line changes for mouse-1 in header-line

* lisp/mouse.el (mouse-drag-line): Avoid pushing same event onto
unread-command-events twice in some cases.  This tries to implement
the 2012-07-26 changes in a different way.

13 years ago* lisp/jit-lock.el (jit-lock-stealth-chunk-start): Don't widen.
Stefan Monnier [Wed, 30 Jan 2013 17:03:44 +0000 (12:03 -0500)]
* lisp/jit-lock.el (jit-lock-stealth-chunk-start): Don't widen.
(jit-lock-mode, jit-lock-functions, jit-lock-context-unfontify-pos):
Use defvar-local.
(jit-lock-register): Use setq-local.

13 years ago* progmodes/python.el
Fabián Ezequiel Gallina [Wed, 30 Jan 2013 15:02:58 +0000 (12:02 -0300)]
* progmodes/python.el
(python-pdbtrack-comint-output-filter-function): Enhancements on
stacktrace detection.  (thanks @gnovak)

13 years agocalc-units.el (math-default-units-table): Remove initial value.
Jay Belanger [Wed, 30 Jan 2013 14:14:27 +0000 (08:14 -0600)]
calc-units.el (math-default-units-table): Remove initial value.

(calc-convert-units): Treat expressions where all the units cancel as
if they didn't have units.

13 years agolisp/gnus/mml.el (mml-insert-part): Insert closing tag
Christopher Schmidt [Wed, 30 Jan 2013 10:43:40 +0000 (10:43 +0000)]
lisp/gnus/mml.el (mml-insert-part): Insert closing tag

13 years agolisp/gnus/mm-decode.el (mm-save-part): Handle invalid read-file-name results
Christopher Schmidt [Wed, 30 Jan 2013 09:44:46 +0000 (09:44 +0000)]
lisp/gnus/mm-decode.el (mm-save-part): Handle invalid read-file-name results

13 years ago* net/tramp.el (tramp-process-connection-type): Fix docstring.
Michael Albinus [Wed, 30 Jan 2013 09:16:16 +0000 (10:16 +0100)]
* net/tramp.el (tramp-process-connection-type): Fix docstring.
(tramp-completion-reread-directory-timeout): Fix type.
(tramp-connection-min-time-diff): New defcustom.

* net/tramp-sh.el (tramp-maybe-open-connection): Use it.

13 years agoMerge from emacs-24; up to r111206
Glenn Morris [Wed, 30 Jan 2013 08:07:37 +0000 (00:07 -0800)]
Merge from emacs-24; up to r111206

13 years agoChangeLog date fix
Glenn Morris [Wed, 30 Jan 2013 07:47:11 +0000 (23:47 -0800)]
ChangeLog date fix

13 years ago* imenu.el (imenu-default-create-index-function):
Glenn Morris [Wed, 30 Jan 2013 07:46:28 +0000 (23:46 -0800)]
* imenu.el (imenu-default-create-index-function):
Put back a version of the infinite loop test removed 2013-01-23.

13 years agoRevert changes, which were committed with revno 111620 by accident.
Michael Albinus [Wed, 30 Jan 2013 07:37:12 +0000 (08:37 +0100)]
Revert changes, which were committed with revno 111620 by accident.

13 years agoAmend to fontify /regexp/s in actions correctly.
Alan Mackenzie [Tue, 29 Jan 2013 20:51:07 +0000 (20:51 +0000)]
Amend to fontify /regexp/s in actions correctly.
cc-awk.el (c-awk-harmless-char-re, c-awk-harmless-string*-re):
(c-awk-harmless-string*-here-re): braces, parens and semicolons are no
longer included.
(c-awk-harmless-line-char-re, c-awk-harmless-line-string*-re): What used
to be these variables without "-line" in the name.
(c-awk-neutral-re): { is no longer neutral.  Escaped newlines now are.
(c-awk-non-arith-op-bra-re): Now also matches {.
(c-awk-pre-exp-alphanum-kwd-re): New regexp to match "print", "return",
and "case".
(c-awk-kwd-regexp-sign-re): New, to match "print", etc., followed by /.
(c-awk-syntax-tablify-/): Check special cases "print /re/", etc.
(c-awk-set-syntax-table-properties): Extend FSM to handle {,},(,),;.

13 years ago* autorevert.el (auto-revert-use-notify): Use
Michael Albinus [Tue, 29 Jan 2013 16:03:40 +0000 (17:03 +0100)]
* autorevert.el (auto-revert-use-notify): Use
`custom-initialize-default' for initialization.  (Bug#13583)

13 years ago* net/tramp-sh.el (tramp-sh-handle-start-file-process): Fix previous patch.
Michael Albinus [Tue, 29 Jan 2013 14:52:20 +0000 (15:52 +0100)]
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Fix previous patch.
(tramp-gw-tunnel-method, tramp-gw-socks-method): Declare for
compatibility.
(tramp-compute-multi-hops): Check, whether
`tramp-gw-tunnel-method' and `tramp-gw-socks-method' are non-nil.

13 years ago* net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.
Michael Albinus [Tue, 29 Jan 2013 08:12:11 +0000 (09:12 +0100)]
* net/ange-ftp.el (ange-ftp-skip-msgs): Add another message.

* net/tramp-sh.el (tramp-sh-handle-start-file-process): Catch
`suppress'.  Otherwise, `tramp-run-real-handler' might be called
in `tramp-file-name-handler'.

13 years ago* progmodes/python.el (python-shell-parse-command): Find
Fabián Ezequiel Gallina [Mon, 28 Jan 2013 21:59:42 +0000 (18:59 -0300)]
* progmodes/python.el (python-shell-parse-command): Find
python-shell-interpreter with modified environment.

13 years ago* lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol.
Stefan Monnier [Mon, 28 Jan 2013 20:00:35 +0000 (15:00 -0500)]
* lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol.

13 years agoMake opendir on MS-Windows accept a 'const char *'.
Eli Zaretskii [Mon, 28 Jan 2013 14:41:08 +0000 (16:41 +0200)]
Make opendir on MS-Windows accept a 'const char *'.

 src/w32.c (opendir): Now accepts a 'const char *'.

 nt/inc/dirent.h (opendir): Update prototype.

13 years agoRemove obsolete redisplay code. See the discussion at
Dmitry Antipov [Mon, 28 Jan 2013 05:47:51 +0000 (09:47 +0400)]
Remove obsolete redisplay code.  See the discussion at
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00576.html.
* dispnew.c (preemption_period, preemption_next_check): Remove.
(Vredisplay_preemption_period): Likewise.
(update_frame, update_single_window, update_window, update_frame_1):
Adjust users.  Always assume that PERIODIC_PREEMPTION_CHECKING is not
used, following the 2012-06-22 change.

13 years ago* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
Dmitry Gutov [Mon, 28 Jan 2013 02:07:42 +0000 (06:07 +0400)]
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
  nested constants, too.  \_< broke that.

13 years ago* progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
Dmitry Gutov [Mon, 28 Jan 2013 01:20:42 +0000 (05:20 +0400)]
* progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
  temporarily) broken indentation.
* automated/ruby-mode-tests.el (ruby-block-test-example):
  Break indentation of the do block opener and add a line inside it.
* automated/ruby-mode-tests.el (works-on-do, ok-with-three):
  Adjust line numbers.

13 years agoSync Version: headers with -version variables
Glenn Morris [Mon, 28 Jan 2013 00:34:22 +0000 (16:34 -0800)]
Sync Version: headers with -version variables

13 years ago* automated/ruby-mode-tests.el
Dmitry Gutov [Sun, 27 Jan 2013 22:47:34 +0000 (02:47 +0400)]
* automated/ruby-mode-tests.el
  (ruby-indent-spread-args-in-parens): New test.

13 years ago* automated/ruby-mode-tests.el
Dmitry Gutov [Sun, 27 Jan 2013 22:46:41 +0000 (02:46 +0400)]
* automated/ruby-mode-tests.el
  (ruby-indent-spread-args-in-parens): New test.

13 years ago* progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<" instead
Dmitry Gutov [Sun, 27 Jan 2013 22:32:11 +0000 (02:32 +0400)]
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<" instead
  of "\\b".  Remove some checks made superfluous as a result.

13 years ago* autorevert.el (auto-revert-handler): Notifications which result
Michael Albinus [Sun, 27 Jan 2013 10:43:33 +0000 (11:43 +0100)]
* autorevert.el (auto-revert-handler): Notifications which result
from a saved file shall not be taken into account.  (Bug#13557)

13 years agoTentative fix for bug #13546 with failure to save files on Windows.
Eli Zaretskii [Sun, 27 Jan 2013 08:04:16 +0000 (10:04 +0200)]
Tentative fix for bug #13546 with failure to save files on Windows.

 src/w32.c (sys_open): Zero out the flags for the new file descriptor.
 (sys_close): Zero out the flags for the file descriptor before
 closing it.

13 years ago* lisp/emacs-lisp/cl.el (cl-set-getf): Add compatibility alias.
Stefan Monnier [Sun, 27 Jan 2013 00:17:11 +0000 (19:17 -0500)]
* lisp/emacs-lisp/cl.el (cl-set-getf): Add compatibility alias.

13 years agoFixes: debbugs:13556
Andreas Schwab [Sat, 26 Jan 2013 15:13:09 +0000 (16:13 +0100)]
Fixes: debbugs:13556
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional
parameter BAR-NOT-SYMBOL to control syntax of | for font-lock.
(lisp-mode): Pass t for it.

13 years agoFix bug #13553 with usage of IS_DIRECTORY_SEP on MS-Windows under DBCS.
Eli Zaretskii [Sat, 26 Jan 2013 12:49:34 +0000 (14:49 +0200)]
Fix bug #13553 with usage of IS_DIRECTORY_SEP on MS-Windows under DBCS.

 src/w32.c (parse_root, get_volume_info, readdir, read_unc_volume)
 (logon_network_drive, stat_worker, symlink, chase_symlinks): Use
 CharNextExA and CharPrevExA to iterate over file names encoded in
 DBCS.

13 years agoAWK Mode: Fix indentation bug at top level. Bug #12274.
Alan Mackenzie [Fri, 25 Jan 2013 18:18:14 +0000 (18:18 +0000)]
AWK Mode: Fix indentation bug at top level.  Bug #12274.
progmodes/cc-engine.el (c-guess-basic-syntax): Move CASE 5P to just
before CASE 5D.

13 years ago* insdel.c (insert_1): Remove.
Dmitry Antipov [Fri, 25 Jan 2013 17:13:31 +0000 (21:13 +0400)]
* insdel.c (insert_1): Remove.
* lisp.h (insert_1): Remove prototype.
* xdisp.c (message_dolog): Adjust users to call insert_1_both.

13 years ago* net/socks.el (socks-nslookup-host): Use string-to-number.
Dmitry Antipov [Fri, 25 Jan 2013 15:48:35 +0000 (19:48 +0400)]
* net/socks.el (socks-nslookup-host): Use string-to-number.

13 years agoUse file-name-coding-system when decoding symlinks on MS-Windows.
Eli Zaretskii [Fri, 25 Jan 2013 14:47:37 +0000 (16:47 +0200)]
Use file-name-coding-system when decoding symlinks on MS-Windows.

 src/w32.c (readlink): Use the current file-name-coding-system, not the ANSI
 codepage, to decode and handle targets of symlinks.

13 years agoRevert revision 111602.
Eli Zaretskii [Fri, 25 Jan 2013 14:38:21 +0000 (16:38 +0200)]
Revert revision 111602.

13 years agoSupport MS-Windows file names encoded in multibyte encodings.
Eli Zaretskii [Fri, 25 Jan 2013 14:34:26 +0000 (16:34 +0200)]
Support MS-Windows file names encoded in multibyte encodings.

 src/w32.c (w32_get_long_filename, init_environment, readlink):
 Support file names encoded in DBCS codepages.

13 years ago* autorevert.el (auto-revert-remote-files)
Michael Albinus [Fri, 25 Jan 2013 13:15:22 +0000 (14:15 +0100)]
* autorevert.el (auto-revert-remote-files)
(auto-revert-notify-exclude-dir-regexp): New defcustoms.
(auto-revert-notify-enabled, auto-revert-use-notify)
(auto-revert-notify-watch-descriptor-hash-list)
(auto-revert-notify-modified-p, auto-revert-notify-event-p)
(auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): Doc fix.
(global-auto-revert-mode): Reorder checks.
(auto-revert-notify-rm-watch): Respect changed values of
`auto-revert-notify-watch-descriptor-hash-list'.
(auto-revert-notify-add-watch): Check for
`auto-revert-notify-exclude-dir-regexp'.  Adapt filters for
`inotify-add-watch'.  Watch `default-directory' instead of
`buffer-file-name'.  `auto-revert-notify-watch-descriptor-hash-list'
has a changed meaning now.  (Bug#13540)
(auto-revert-notify-handler): Change implementation wrt events
returning from a directory.
(auto-revert-handler): Reorder implementation for checks of remote
files.
(auto-revert-buffers): Fix parentheses error.

13 years agow32.c (readlink): Support DBCS codepages.
Eli Zaretskii [Fri, 25 Jan 2013 10:27:16 +0000 (12:27 +0200)]
w32.c (readlink): Support DBCS codepages.

13 years agoUpdate doc string of w32notify-add-watch per discussions in bug #13540.
Eli Zaretskii [Fri, 25 Jan 2013 09:39:47 +0000 (11:39 +0200)]
Update doc string of w32notify-add-watch per discussions in bug #13540.

 src/w32notify.c (Fw32notify_add_watch): Doc fix.

13 years ago* font.c (num_fonts): Remove the leftover from old
Dmitry Antipov [Fri, 25 Jan 2013 06:31:41 +0000 (10:31 +0400)]
* font.c (num_fonts): Remove the leftover from old
debugging code.  Adjust comment style here and there.